/*
 * Session.java
 *
 * Created on April 28, 2007, 10:48 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package ge.info.logging;

import java.io.Serializable;
import java.util.Calendar;

/**
 *
 * @author Administrator
 */
public class Session implements Serializable
{

    private String sessionID;
    private String parentID;
    private int callType = 0;
    private String phone;
    private String machineIP;
    private String userName;
    private String comp;
    private String displayName;
    private int yearMonth;
    private boolean webSession = true;
    private int chcount = 0;
    private int sex = -1;
    private int cbd = 0;
    private String debts = "";
    /** Creates a new instance of Session */
    public Session()
    {
        Calendar cl = Calendar.getInstance();
        cl.setTimeInMillis(System.currentTimeMillis());
        int y = cl.get(Calendar.YEAR);
        int m = cl.get(Calendar.MONTH) + 1;
        yearMonth = (y-2000) * 100 + m;
    }

    public String getSessionID()
    {
        return sessionID;
    }

    public void setSessionID(String sessionID)
    {
        this.sessionID = sessionID;

    }

    public String getParentID()
    {
        return parentID;
    }

    public void setParentID(String parentID)
    {
        this.parentID = parentID;
    }

    public int getCallType()
    {
        return callType;
    }

    public void setCallType(int callType)
    {
        this.callType = callType;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    /**
     * @return the machineIP
     */
    public String getMachineIP()
    {
        return machineIP;
    }

    /**
     * @param machineIP the machineIP to set
     */
    public void setMachineIP(String machineIP)
    {
        this.machineIP = machineIP;
    }

    /**
     * @return the userName
     */
    public String getUserName()
    {
        return userName;
    }

    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName)
    {
        this.userName = userName;
    }


    public String getComp()
    {
        return comp;
    }

    /**
     * @param userName the userName to set
     */
    public void setComp(String comp)
    {
        this.comp = comp;
    }

    /**
     * @return the displayName
     */
    public String getDisplayName()
    {
        return displayName;
    }

    /**
     * @param displayName the displayName to set
     */
    public void setDisplayName(String displayName)
    {
        this.displayName = displayName;
    }

    /**
     * @return the webSession
     */
    public boolean isWebSession()
    {
        return webSession;
    }

    /**
     * @param webSession the webSession to set
     */
    public void setWebSession(boolean webSession)
    {
        this.webSession = webSession;
    }

    /**
     * @return the yearMonth
     */
    public int getYearMonth()
    {
        return yearMonth;
    }

     public int getChcount()
    {
        return chcount;
    }

    public void setChcount(int chcount)
    {
        this.chcount = chcount;
    }

    public int getSex()
    {
        return sex;
    }

    public void setSex(int sex)
    {
        this.sex = sex;
    }

    public int getCbd()
    {
        return cbd;
    }

    public void setCbd(int cbd)
    {
        this.cbd = cbd;
    }

     public String getDebts()
    {
        return debts;
    }

    public void setDebts(String debts)
    {
        this.debts = debts;
    }


}

